<include file="public:header" />
<include file="public:left" />
<div class="flexigrid">
    <div class="mDiv">
        <div class="ftitle">
            <h3>轮播图编辑</h3>
            <h5><a class="fr" href="javascript:void(0)" onclick="history.go(-1)">返回上一页</a></h5>
        </div>
    </div>
</div>
	<form  method="post" enctype="multipart/form-data" id="brandForm">
	    <input type="hidden" name="id" value="{$banner.id}" />
        <section>
            <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">主图：</span>
                <input type="file" name="bnimage" class="textbox textbox_295"/>
                <input type="hidden" name="bne" class="textbox textbox_295" value="{$banner.image}"/>
            </li>
            <if condition="$banner.image">
                <li>
                    <span class="item_name" style="width:120px;">主图：</span>
                    <img height="100" src="__STATIC__/uploads/{$banner.image}" alt="">
                </li>
            </if>
            <li>
                <span class="item_name" style="width:120px;">状态：</span>
                <label><input type="radio" name="status" <eq name="banner.status" value="1"> checked</eq> value="1"/>启用</label>
                <label><input type="radio" name="status" <neq name="banner.status" value="0"> checked</neq> value="0"/>弃用</label>
            </li>
            <li>
                <span class="item_name" style="width:120px;">排序：</span>
                <input type="text" class="textbox textbox_295" name="displayorder" value="{$banner.sort}" placeholder="值越大越靠前"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;">URL：</span>
                <input type="text" class="textbox textbox_295" name="url" value="{$banner.url}"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="button" class="link_btn" value="提交"/>
            </li>
            </ul>
        </section>
    </form>
    <script type="text/javascript">
    $(document).ready(function(){
        //tab
        $(".admin_tab li a").click(function(){
        var liindex = $(".admin_tab li a").index(this);
        $(this).addClass("active").parent().siblings().find("a").removeClass("active");
        $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
        });
        
        $(".link_btn").click(function(){
            
            
            $("#brandForm").submit();

        });

        });
    </script>
 </div>
</section>
</body>
</html>
